//
// Created by 123 on 2024/12/31.
//
#include "iostream"
using namespace std;
class Person{
public:
    int age;
    Person(int age){
        this->age = age;
    }
    Person& personAddPerson(Person p){
        this->age += p.age;
        return *this;
    }
};

void test(){
    Person p1(10);
    cout << "p1.age==" << p1.age << endl;

    Person p2(10);
    p2.personAddPerson(p1).personAddPerson(p1).personAddPerson(p1);
    cout << "p2.age==" << p2.age << endl;
}

int main066(){
    test();

    return 0;
}